import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import HomeWork from './HomeWork';
// import HomeWork2 from './HomeWork2';
import HomeWork3 from './HomeWork3';

const notes = [
    {
      id: 1,
      content: 'HTML is easy',
      date: '2019-05-30T17:30:31.098Z',
      important: true
    },
    {
      id: 2,
      content: 'Browser can execute only JavaScript',
      date: '2019-05-30T18:39:34.091Z',
      important: false
    },
    {
      id: 3,
      content: 'GET and POST are the most important methods of HTTP protocol',
      date: '2019-05-30T19:20:14.298Z',
      important: true
    }
  ]

const root = ReactDOM.createRoot(document.getElementById('root'));

//render 渲染
root.render(
    <App notes={notes}/>
    // <HomeWork />
    // <HomeWork3 />
);
